package com.ky.mapper;

import com.ky.Common.Result;
import com.ky.entity.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface StaffMapper {

    @Select ("select * from busdb.staff")
    List<Staff> findall();

    @Select ("select * from busdb.staff  where username=#{username} and password=#{password}")
    Staff login(@Param("username")String username, @Param ("password") String password);
}
